<script>
import { mapActions, mapState } from "vuex";
	export default {
        methods:{
            ...mapActions(["fetchToken"])
        },
		onLaunch:async  function() {
            console.log('登录请求')
             await this.fetchToken()
            //  wx.login({
            //     provider:'weixin',
            //     success:async function(res){
            //         // console.log(res)
            //           if (res.code) {
            //                     } else {
            //                       console.log('获取用户登录态失败！' + res.errMsg)
            //                     }
            //     }
            // })
		
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	@import "uview-ui/index.scss";
</style>

